﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace T.FAS.Runtime.SPI
{
    public  class ImportParam
    {
        /// <summary>
        /// CDOID
        /// </summary>
        public string CDOID { get; set; }
        /// <summary>
        /// 脚本
        /// </summary>
        public string Script { get; set; }
        /// <summary>
        /// 任务ID
        /// </summary>
        public string TaskID { get; set; }
        /// <summary>
        /// 最大行数
        /// </summary>
        public int MaxRow { get; set; } = 5000;
        /// <summary>
        /// 导入策略 0更新 1报错
        /// </summary>
        public int ImportStrategy { get; set; }
        /// <summary>
        /// 是否可以重复导入
        /// </summary>
        public bool CanRepeatImport { get; set; }
        /// <summary>
        /// 是否启用唯一标识列
        /// </summary>
        public bool IsEnableUniqueCol { get; set; } = true;
        /// <summary>
        /// 是否启用说明行
        /// </summary>
        public bool IsEnableExplainRow { get; set; } = true;
        /// <summary>
        /// 资源服务地址
        /// </summary>
        public string FileURL { get; set; }
        /// <summary>
        /// DataQueryID
        /// </summary>
        public string DataQueryID { get; set; }
        /// <summary>
        /// 本地文件名称
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// Sheet名称
        /// </summary>
        public string SheetName { get; set; }
    }
}
